package com.iims.flowable.flow.vo;

import com.iims.flowable.flow.vo.request.SubmitTaskFormVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

/**
 * @author fanpei
 * @date 2020年3月24日
 */
@Data
@ApiModel("启动任务对象")
public class ProcessInstanceRequest {
    @ApiModelProperty(value = "流程定义Id", required = true)
    @NotBlank(message = "流程定义Id不能为空")
    private String processDefinitionId;

    @ApiModelProperty(value = "流程定义Key", required = true)
    @NotBlank(message = "流程定义Key不能为空")
    private String processDefinitionKey;

    @ApiModelProperty(value = "流程提交表单数据")
    private SubmitTaskFormVo taskForm;


    @ApiModelProperty("抄送人列表")
    private CcToVo[] ccToVos;

    @ApiModelProperty("流程启动变量，JSON格式，key-value")
    private Map<String, Object> variables;
}
